<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 13.01.2015
 * Time: 15:20
 */

namespace EmailDelivery;


class TestAction extends \Action {

	protected function run()
	{
		$this->response->noRender(true);

		if (!$this->request->profileId) {
			echo 'empty "profileId"';
			return;
		}

		EmailDelivery::sendTemplate(\EmailDeliveryConfig::TEMPLATE_TYPE_RECOVERY,
			[
				'userId' => $this->request->profileId,
			]
		);
	}

} 